/**
 * 服务器加载文件
 */

var express = require("express");
var app = new express();

const path = require('path');

app.use(express.static(path.join(__dirname, 'public')))

app.use('/', function (req, res) {
    res.setHeader('Content-Type', 'text/html');
    var html = fs.readFileSync(path.join(__dirname, 'src/index.html'));
    res.end(html)

})

app.listen('80')